Editor.Decks.CornerVocabLiteral = function () {
	//var figureCorner1;
	//var figureCorner2;
	var figureCorner3;
	var impl;
	var shape;
	return {
		init: function (s) {
			shape = s;
			impl = shape.getImplementation();
		},
		remove: function () {
			//figureCorner1.remove();
			//figureCorner2.remove();
			figureCorner3.remove();
			//delete figureCorner1;
			delete figureCorner2;
			delete figureCorner3;
		},
		draw: function () {
			var x1 = shape.getX() + shape.getWidth();
			var y1 = shape.getY();
			var x2 = shape.getX() + shape.getWidth() - Editor.CONFIG.DECK_CORNERLITERAL_DELTA;
			var y2 = shape.getY() + Editor.CONFIG.DECK_CORNERLITERAL_DELTA;
			//figureCorner1 = Editor.STATE.CANVAS.path( ["M",x2+1, y1-1, "L", x1+1, y1-1, "L", x1+1, y2+1].join(',') ).attr(Editor.CONFIG.BACKGROUND_ATTR);
			//figureCorner2 = Editor.STATE.CANVAS.path( ["M",x2, y1, "L", x1, y2].join(',') ).attr(Editor.CONFIG.LITERAL_SHAPE_ATTR);
			figureCorner3 = Editor.STATE.CANVAS.path(["M", x2, y1, "L", x2, y2, "L", x1, y2].join(',')).attr(Editor.CONFIG.LITERAL_SHAPE_ATTR);
		},
		redraw: function () {
			var x1 = shape.getX() + shape.getWidth();
			var y1 = shape.getY();
			var x2 = shape.getX() + shape.getWidth() - Editor.CONFIG.DECK_CORNERLITERAL_DELTA;
			var y2 = shape.getY() + Editor.CONFIG.DECK_CORNERLITERAL_DELTA;
			//figureCorner1.attr({path: ["M",x2, y1-1, "L", x1+1, y1-1, "L", x1+1, y2].join(',') });
			//figureCorner2.attr({path: ["M",x2, y1, "L", x1, y2].join(',') });
			figureCorner3.attr({
				path: ["M", x2, y1, "L", x2, y2, "L", x1, y2].join(',')
			});
		},
		mouseover: function () {},
		mouseout: function () {},
		click: function () {},
		translate: function (deltaX, deltaY) {
			//figureCorner1.translate(deltaX, deltaY);
			//figureCorner2.translate(deltaX, deltaY);
			figureCorner3.translate(deltaX, deltaY);
		},
		toFront: function () {
			//figureCorner1.toFront();
			//figureCorner2.toFront();
			figureCorner3.toFront();
		}
	}
}
